#!/usr/bin/env python

"""
        __author__      = "Vishal Patil"
        __copyright__   = "Copyright (C) 2006 Vishal Patil"
"""

class Configuration:

	population	= None
	populationSize  = 0
	geneticOperators = []	
	naturalSelectors = []
	fitnessEvaluator = None
	fitnessFunction  = None
	randomGenerator = None

	def addGeneticOperator(self,geneticOperator):
		self.geneticOperators.append(geneticOperator)
	
	def addNaturalSelector(self,naturalSelector):		
		self.naturalSelectors.append(naturalSelector)

	def setFitnessEvaluator(self,fitnessEvaluator):
		self.fitnessEvaluator = fitnessEvaluator

	def setFitnessFunction(self,fitnessFunction):
		self.fitnessFunction = fitnessFunction

	def setRandomGenerator(self,randomGenerator):
		self.randomGenerator = randomGenerator

	def setPopulationSize(self,size):
		self.populationSize = size
